/** 
* @param {array}
* @param {any}
* @returns {boolean}
**/
function includes(array, value) {
  if (!Array.isArray(array) || !value) return
  const len = array.length
  let i = -1

  while(++i < len) {
    if (array[i] === value) {
      return true
    }
  }
  return false
}

export default includes